package com.smart.test.proxy.advice;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @auther a123
 * @create 2018-08-14 20:27
 * @desc 实现前置增强
 */
public class GreetingGeforeAdvice implements MethodBeforeAdvice {


    public void before(Method method, Object[] objects, Object o) throws Throwable {
        String clientName = (String)objects[0];
        System.out.println("how are you ! Mr." + clientName);
    }
}
